//
//  SmallDecisionsHUDHelper.h
//  SmallDecisions
//
//  Created by 李付雄 on 2025/6/14.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface SmallDecisionsHUDHelper : NSObject
+ (void)showLoadingInview:(UIView *)view
                  addMask:(BOOL)addMask;
+ (void)showLoadingInview:(UIView *)view;

+ (void)showLoading:(NSString * _Nullable)text
               view:(UIView * _Nullable)view
            addMask:(BOOL)addMask;

+ (void)showLoading:(NSString * _Nullable)text
               view:(UIView * _Nullable)view;

+ (void)showSuccess:(NSString *)success;
+ (void)showSuccess:(NSString *)success
             toView:(nullable UIView *)view;

+ (void)showError:(NSString *)error;
+ (void)showError:(NSString *)error
           toView:(nullable UIView *)view;

+ (void)showMessage:(NSString *)message;
+ (void)showMessage:(NSString *)message
             toView:(nullable UIView *)view;
+ (void)showMessage:(NSString *)message
             toView:(UIView *)view
            addMask:(BOOL)addMask;

+ (void)hideHUD;
+ (void)hideHUDForView:(nullable UIView *)view;
@end

NS_ASSUME_NONNULL_END
